package Io2;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class ReadStringDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos=new FileOutputStream("RRR.TXT");
        String line="心在跳是爱情如烈火，你在笑疯狂的人是我";
        byte[]data=line.getBytes(StandardCharsets.UTF_8);
        fos.write(data);
        System.out.println("写出完毕");
        fos.close();













//        FileOutputStream fos=new FileOutputStream("ST.txt");
//        String line="心在跳是爱情如烈火，你在笑疯狂的人是我";
//        byte[]data=line.getBytes(StandardCharsets.UTF_8);
//        fos.write(data);
//        System.out.println("写出完毕");
//        fos.close();




    }
}
